<?php
class GearmanUtility
{
    public static function doBackground($jobId, array $params = null)
    {
        $job = array();
        $job['id'] = $jobId;
        $job['params'] = serialize($params);
        $job = json_encode($job);

        $queue = new ARedisList('gearman_queue');
        $queue->push($job);
    }
}